<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

    public function _initAutoloader()
    {
        $loader = new Zend_Application_Module_Autoloader(array('namespace' => '', 'basePath' => APPLICATION_PATH));
        return $loader;
    }

    public function _initPlugin()
    {
        Zend_Controller_Front::getInstance()->registerPlugin(new Plugin_Init());
    }

    public function _initRouters()
    {
        $router = Zend_Controller_Front::getInstance()->getRouter();
        $router->addRoutes($this->_getArrayRouters());
    }

    private function _getArrayRouters()
    {

        return array(
            'home_page' => new Zend_Controller_Router_Route_Static('/',
                    array(
                        'controller' => 'index', 'action' => 'index'
                    )
            ),
            'quick-help' => new Zend_Controller_Router_Route_Static('/quick-help.html',
                    array(
                        'controller' => 'index', 'action' => 'quick-help'
                    )
            ),
            'reference_service_ukraine' => new Zend_Controller_Router_Route_Static('/reference-service-ukraine.html',
                    array(
                        'controller' => 'index', 'action' => 'reference-service-ukraine'
                    )
            ),
            'about_project' => new Zend_Controller_Router_Route_Static('/about-project.html',
                    array(
                        'controller' => 'index', 'action' => 'about-project'
                    )
            ),
            'user_agreement' => new Zend_Controller_Router_Route_Static('/user-agreement.html',
                    array(
                        'controller' => 'index', 'action' => 'user-agreement'
                    )
            ),
            'contact_us' => new Zend_Controller_Router_Route_Static('/contact-us.html',
                    array(
                        'controller' => 'index', 'action' => 'contact-us'
                    )
            )
        );
    }

}

